import request from './index'
const type = {
  type: 0
}
/**
 * 登录
 * @param data
 */
//登录
export const login = async (data: object) => request('/assistant/login/assistant/phone','POST',data)
//注册
export const register = async (data: object) => request('/assistant/login/assistant/register','POST',data)
//忘记密码
export const forgetPassword = async (data: object) => request('/assistant/login/updateUserInfoPwd','POST',data)
//协议
export const protocol = async (data: object) => request('/assistant/login/findInitData','GET',{...data,...type})
//个人信息获取
export const getFindUserInfo = async () => request('/assistant/leave/findStudentUserInfo','GET',{})

/**
 * 消息相关接口
 */
//获取系统消息列表
export const getFindAssistantMessageList = async (data: object) => request('/assistant/message/findUserMessageListApi','GET',{...data,...type})
//删除消息
export const deleteMessage = async () => request('/assistant/message/delUserMessageApi','DELETE',{})
/**
 * 班级管理相关接口
 */
//班级列表
export const getFindAssistantCourseClassesList = async (data: object) => request('/assistant/classManagement/findAssistantCourseClassesList','GET',{...data,...type})
//今日课堂
export const getFindAssistantCourseClassesToday = async (data: object) => request('/assistant/classManagement/findAssistantClassroomToday','GET',{...data,...type})
//家长反馈
export const getFindTeacherParentFeedback = async (data: object) => request('/assistant/change/findTeacherParentFeedback','GET',{...data})
//今日课堂详情
export const getCourseDetail = async (data: object) => request('/assistant/change/findTeacherClassroomTodayDetail','GET',{...data})
//课堂总结
export const getCourseSummary = async (data: object) => request('/assistant/change/createTeacherStudentSumUp','POST',{...data})
//今日课堂学生列表
export const getFindAssistantCourseClassesTodayList = async (data: object) => request('/assistant/change/findTeacherClassroomStudentList','GET',{...data,...type})
//直播课程学生列表
export const getFindAssistantCourseClassesTodayListLive = async (data: object) => request('/assistant/classManagement/find/CourseClasses/UserInfoList','GET',{...data,...type})

/**
 * 学生教师家长管理相关接口
 */
//学生管理列表
export const studentList = async (data: object) => request('/assistant/management/findStudentManagementList','GET', {...data,...type})
//班级学生列表
export const studentClassList = async (data: object) => request('assistant/classManagement/find/CourseClasses/UserInfoList','GET',{...data,...type})
//教师管理列表
export const teacherList = async (data: object) => request('/assistant/management/findTeacherManagement','GET',{...data,...type})
//教师下拉框
export const teacherSelect = async () => request('/assistant/management/findTeacherDropDownBox','GET',{})
//学生详情
export const studentDetail = async (data: object) => request('/assistant/management/findStudentManagementDetail','GET',{...data,...type})
//学生家长-列表
export const studentParentList = async (data: object) => request('/assistant/management/findAssistantPatriarchList','GET',{...data,...type})
//修改备注
export const studentParentRemark = async (data: object) => request('/assistant/management/update/Audit/FName','POST',{...data})
//班级阶段反馈列表
export const getFindAssistantCourseClassesFeedbackList = async (data: object) => request('/assistant/classManagement/findAssistantStageFeedbackList','GET',{...data,...type})
//直播课程-作业列表
export const getFindAssistantCourseClassesWorkList = async (data: object) => request('/assistant/classManagement/findAssistantReportHomework','GET',{...data,...type})
//教学内容获取
export const getTeachingContent = async (data: object) => request('/assistant/classManagement/findRoomProgressReport','GET',{...data,...type})


/**
 * 订单管理
 */
//订单列表
export const orderList = async (data: object) => request('/assistant/order/find/AssistantOrder/ManagementList','GET',{...data,...type})

/**
 * 排课相关接口
 */
//助教课程排课-列表
export const getArranged = async (data: object) => request('/assistant/scheduling/findAssistant/CoursesCanBe/Arranged','GET',{...data,...type})
//课程进度
export const getCourseProgress = async (data: object) => request('/assistant/scheduling/findAdminCourseSchedule','GET',{...data,...type})
//课程时间进度
export const getCourseTimeProgress = async (data: object) => request('/assistant/scheduling/findAdminCourseSchoolTime','GET',{...data,...type})
//课程进度类型
export const getCourseProgressType = async (data: object) => request('/assistant/scheduling/findAdminCourseType','GET',{...data,...type})
//助教课程排课-学生列表
export const getArrangedStudent = async (data: object) => request('/assistant/scheduling/find/Assistant/StudentList','GET',{...data,...type})
//学生列表
export const getStudentList = async (data: object) => request('/assistant/scheduling/find/SchedulingStudentList','GET',{...data,...type})
//排课
export const arranged = async (data: object) => request('/assistant/scheduling/createAssistantCourses','RAW', data)
//排课列表
export const getArrangedList = async (data: object) => request('/assistant/scheduling/find/CourseSchedulingList','GET',{...data,...type})
//排课编辑
export const arrangedEdit = async (data: object) => request('/assistant/scheduling/updateAssistantCourses','RAW',data)
//无订单排课学生列表
export const getNoOrderArrangedStudent = async (data: object) => request('/assistant/new/scheduling/find/UserInfo/Children','GET',{...data,...type})
//无订单排课
export const noOrderArranged = async (data: object) => request('/assistant/new/scheduling/createNewAssistantCourses','RAW',data)
//月课表
export const getMonthCourse = async (data: object) => request('/assistant/new/scheduling/findMonthlyChildInfoTable','GET',{...data})
//当天助教课程列表
export const getTodayArranged = async (data: object) => request('/assistant/new/scheduling/findMonthlySchedule','GET',{...data})
//批量删除排课
export const deleteArranged = async (data: any) => request('/assistant/scheduling/deleteCourseScheduling','DELETE',data)


/**
 * 请假管理
 */
//教师请假列表
export const teacherLeaveList = async (data: object) => request('/assistant/leave/findUserTeacherLeaveList','GET',{...data,...type})
//学生请假列表
export const studentLeaveList = async (data: object) => request('/assistant/leave/findAssistantChildLeaveRecord','GET',{...data,...type})
//教师请假-操作
export const teacherLeave = async (data: object) => request('/assistant/leave/operationTeacherLeave','POST',data)
//指派老师
export const teacherAssign = async (data: object) => request('/assistant/leave/updateAssignedTeacher','POST',data)
//学生请假操作
export const studentLeave = async (data: object) => request('/assistant/leave/operationChildLeaveRecord','POST',data)
//请假排课
export const postFindTeacherAssignStudent = async (data: object) => request('/assistant/leave/operationCourseScheduling','POST',data)

/**
 * 换课管理
 */
//换课列表
export const getChangeCourse = async (data: object) => request('/assistant/change/findAssistantCourseChangeList','GET',{...data,...type})
//换课操作
export const postChangeCourse = async (data: object) => request('/assistant/change/operationCourseChange','POST',data)
//换课管理-排课
export const getArrangedChangeCourse = async (data: object) => request('/assistant/change/changeManagementScheduling','RAW',{...data})
//换课管理-更改差价
export const postChangeCourseChangePrice = async (data: object) => request('/assistant/change/operationChangeSpread','POST',data)

/**
 * 作业管理
 */
//作业列表
export const getWorkList = async (data: object) => request('/assistant/classManagement/findAssistantStudentsHomeworkList','GET',{...data,...type})
//作业详情
export const getWorkDetail = async (data: object) => request('/assistant/classManagement/findStudentsHomeworkDetail','GET',{...data,...type})

/**
 * 直播课程
 */
//直播课程
export const liveCourse = async (data: object) => request('/assistant/classManagement/findTeacherLiveCourse','GET',{...data,...type})

/**
 * 工具
 */
//oss上传
export const ossUpload = async (data: object) => request('/util/file/oss/single','POST',data)
//验证码
export const captcha = async (data: object) => request('/util/sms/alibaba/send','POST',data)